package com.alinesno.cloud.base.logger;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

import com.alinesno.cloud.common.core.auto.EnableCore;
import com.alinesno.cloud.common.core.auto.EnableDubboScan;
import com.alinesno.cloud.common.web.basic.auth.enable.EnableHttpBasicAuth;
import com.alinesno.cloud.common.web.basic.auth.enable.ScanPackage;
import com.alinesno.cloud.monitor.agent.enable.EnableWatcher;

/**
 * 启动入口
 * 
 * @author WeiXiaoJin 
 * @since 2018-12-16 18:12:76
 */
@EnableScheduling
@EnableWatcher
@EnableHttpBasicAuth
@EnableJpaAuditing
@EnableAsync // 开启异步任务
@EnableDubboScan
@EnableCore
@EntityScan({ScanPackage.BASIC_BACKENTITY , "com.alinesno.cloud.base.logger.entity"})
@EnableJpaRepositories({ScanPackage.BASIC_BACKREPOSITORY , "com.alinesno.cloud.base.logger.repository"}) 
@SpringBootApplication(scanBasePackages = {"com.alinesno.cloud.base.logger"})
public class BaseWatcherApplication {
	
	protected static final Logger log = LoggerFactory.getLogger(BaseWatcherApplication.class) ; 

	public static void main(String[] args) throws InterruptedException {
		SpringApplication.run(BaseWatcherApplication.class, args);
	
		
		
	}

}
